#include "PiccoloWindow.h"
#include "Window/PiccoloGLFWWindow.h"

namespace Piccolo
{
    std::unique_ptr<PiccoloWindow> PiccoloWindow::Create(uint32_t width, uint32_t height, const char *title)
    {
#ifdef PICCOLO_ENGINE_PLATFORM_WIN32
        return std::make_unique<PiccoloGLFWWindow>(width, height, title);
#elif PICCOLO_ENGINE_PLATFORM_MACOS
        return std::make_unique<PiccoloGLFWWindow>(width, height, title);
#elif PICCOLO_ENGINE_PLATFORM_LINUX
        return std::make_unique<PiccoloGLFWWindow>(width, height, title);
#endif
        return nullptr;
    }
}
